package cn.silver.module.message.domain;

import cn.silver.framework.core.utils.DateUtils;
import cn.silver.framework.mybatis.annotation.Table;
import cn.silver.framework.tenant.domain.TenantEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.util.Date;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@Table(name = "msg_calendar")
@EqualsAndHashCode(callSuper = true)
@Schema(name = "MsgCalendar", title = "日程安排表")
public class MsgCalendar extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 日程类型
     */
    @Schema(title = "日程类型")
    private String type;
    /**
     * 日程主题
     */
    @Schema(title = "日程主题")
    private String subject;
    /**
     * 日程内容
     */
    @Schema(title = "日程内容")
    private String content;
    /**
     * 开始时间
     */
    @Schema(title = "开始时间")
    @JsonFormat(timezone = DateUtils.TIME_ZONE, pattern = DateUtils.YYYY_MM_DD)
    private Date startTime;
    /**
     * 结束时间
     */
    @Schema(title = "结束时间")
    @JsonFormat(timezone = DateUtils.TIME_ZONE, pattern = DateUtils.YYYY_MM_DD)
    private Date stopTime;
}
